#pragma once

#include "../umlmodel_global.h"

#include "UMLLabel.h"

namespace uml {
class Element;
class Property;

/// <summary>
/// UMLStereotypePropertyValueLabel
/// For showing Property values of Stereotypes applied to UML abstract syntax
/// elements.
/// </summary>
class UMLMODEL_EXPORT UMLStereotypePropertyValueLabel : public UMLLabel {

public: // Constructors and destructors
    explicit UMLStereotypePropertyValueLabel(const QString& umlType="uml::UMLStereotypePropertyValueLabel");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// modelElement getter
    /// A Property of a Stereotype applied to the stereotypedElement.
    /// </summary>
    shared_ptr<Property> modelElement() const;

    /// <summary>
    /// modelElement setter
    /// A Property of a Stereotype applied to the stereotypedElement.
    /// </summary>
    void setModelElement(shared_ptr<Property> value);

    /// <summary>
    /// stereotypedElement getter
    /// Element to which a Stereotype having the modelElement (Property) is applied.
    /// </summary>
    shared_ptr<Element> stereotypedElement() const;

    /// <summary>
    /// stereotypedElement setter
    /// Element to which a Stereotype having the modelElement (Property) is applied.
    /// </summary>
    void setStereotypedElement(shared_ptr<Element> value);

private: // Fields
    /// <summary>
    /// modelElement
    /// A Property of a Stereotype applied to the stereotypedElement.
    /// </summary>
    shared_ptr<Property> modelElement_;

    /// <summary>
    /// stereotypedElement
    /// Element to which a Stereotype having the modelElement (Property) is applied.
    /// </summary>
    shared_ptr<Element> stereotypedElement_;

};

} // namespace uml
